package com.naiterui.ehp.bs.weixin.feign;

import com.naiterui.common.repository.page.PageVO;
import com.naiterui.ehp.bp.support.config.FeignConfiguration;
import com.naiterui.ehp.bp.support.exception.BusinessException;
import com.naiterui.ehp.bs.weixin.vo.VideoConsultRecordVO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(name = "adVideoConsult", url = "${ehp.domain.videoConsult}", configuration = FeignConfiguration.class)
public interface VideoConsultFeignClient {

    /**
     * 视频咨询列表
     * @param patientId
     * @param page
     * @param num
     * @return
     */
    @GetMapping("/inner/video/consult/getConsultVideoListByPatientId")
    PageVO<VideoConsultRecordVO> consultVideoList(@RequestParam("patientId") Long patientId, @RequestParam("page") int page, @RequestParam("num") int num) throws BusinessException;

}
